home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / DESK / CORE / Desk / h / Print < prev    next >
Text File  |  1996-05-21  |  1KB  |  49 lines

  1.  
  2. #ifndef __Desk_Print_h
  3. #define __Desk_Print_h
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #ifndef __Desk_Wimp_h
  8. #include "Desk.Wimp.h"
  9. #endif
  10. #ifndef __Desk_PDriver_h
  11. #include "Desk.PDriver.h"
  12. #endif
  13. typedef struct Desk_print_block {
  14. void *reference; 
  15. char *jobtitle; 
  16. Desk_printer_info printerinfo; 
  17. Desk_print_job job; 
  18. Desk_print_job oldjob; 
  19. }
  20. Desk_print_block;
  21. enum {
  22. Desk_print_result_OK = 0, 
  23. Desk_print_result_QUEUED, 
  24. Desk_print_result_NEEDPRINTERMANAGER, 
  25. Desk_print_result_PRINTERROR, 
  26. Desk_print_result_SAVEFAILED, 
  27. Desk_print_result_CANTSAVE, 
  28. Desk_print_result_CANTOPENPRINTER, 
  29. Desk_print_result_FAILED 
  30. };
  31. typedef int Desk_print_result;
  32. typedef Desk_bool (*Desk_print_printfn)(Desk_print_block *print);
  33. typedef Desk_bool (*Desk_print_savefn)(Desk_print_block *print, Desk_message_datasaveack *datasaveack);
  34. typedef void (*Desk_print_resultfn)(Desk_print_block *print, Desk_print_result result);
  35. void Desk_Print_StartPrint(
  36. Desk_print_printfn printfn, 
  37. Desk_print_savefn savefn, 
  38. Desk_print_resultfn resulfn, 
  39. void *reference, 
  40. int filetype, 
  41. int estsize, 
  42. char *leafname, 
  43. char *jobtitle
  44. );
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif
  49.